<!--老板 – 我的 – 所在团队 – 管理员设置 – 2			Childs -->
<template>
	<view class="">
		<view>
			<mSearch :show="false" @search="search($event,1)" :mode="2" radius="5"></mSearch>
		</view>
		<view class="Childs-top">
			<view class="w90 p_t_15 f b c">
				<view class="Childs-top-lan">
					<image style="width: 36rpx;height: 36rpx;" src="../../../../static/img/126.png" mode=""></image>
				</view>
				<view class="f d">
					<text>添加更多成员</text>
					<text class="fs16 hui">邀请或添加更多不在企业通讯录内的成员</text>
				</view>
				<view>
					<image style="width: 24rpx;height: 24rpx;" src="../../../../static/img/125.png" mode=""></image>
				</view>
			</view>
		</view>
		<view class="w90 p_t_20" v-for="(item,index) in list" :key="index">
			<view class="w95 f b c">
				<view class="">
					
					<view class="flexR aic">
						<u-checkbox v-model="item.checked" shape="circle">
						</u-checkbox>
						<image class="ml20" style="width:80rpx;height: 80rpx;" src="../../../../static/img/013.png">
						</image>
						<view class="ml40 fs34">姓名</view>
						<view class="ml40">
							<view :class="item.name != '' ? 'Details-zhu':'Details-zhu1'" class="senter">
								<text class="fs24">{{item.name}}</text>
							</view>
						</view>
					</view>
				</view>

				<view>
					<view>
						<text class="">职位</text>
					</view>
				</view>

			</view>

			<view class="quanxian"></view>
		</view>
		<view class="" style="padding:50rpx;"></view>
	</view>
</template>

<script>
	import mSearch from '@/components/mehaotian-search/mehaotian-search.vue';
	export default {
		components: {
			mSearch
		},
		data() {
			return {
				checked: false,
				province: [],
				change: '',
				val2: '',
				placeholder: '请输入搜索内容',
				list: [{
						name: '主管理员',
						txt: true
					},
					{
						name: '子管理员',
						txt: false
					},
					{
						name: '子管理员',
						txt: false
					},
					{
						name: '',
						txt: false
					},
					{
						name: '',
						txt: false
					},
					{
						name: '',
						txt: false
					},
					{
						name: '',
						txt: false
					},
					{
						name: '',
						txt: false
					},
					{
						name: '',
						txt: false
					},
					{
						name: '',
						txt: false
					},
					{
						name: '',
						txt: false
					}

				]
			}
		},
		onLoad() {
			// 动态导航条文字
			uni.setNavigationBarTitle({
				title: '选择子管理员'
			})
		},
		methods: {
			search(e, val) {
				console.log(e, val);
				this['val' + val] = e;
			},
			getChecked(index) {
				for (var i = 0; i < this.list.length; i++) {
					this.list[i].txt = false
					this.list[index].txt = true
				}

				console.log(index);
				console.log(this.list)
			}
		}
	}
</script>

<style scoped>
	.warps {
		height: 100vh;
		overflow: hidden;
		background-color: #fff;
	}

	.Details-zhu {
		width: 120rpx;
		height: 34rpx;
		line-height: 28rpx;
		opacity: 1;
		background: #ffffff;
		border: 2rpx solid #333333;
		border-radius: 20rpx;
	}

	.Details-zhu1 {}

	.radio {
		width: 38rpx;
		height: 38rpx;
		display: inline-block;
		vertical-align: middle;
	}

	.Childs-top {
		width: 686rpx;
		height: 92rpx;
		opacity: 1;
		background: #f6f8fc;
		border-radius: 8rpx;
		margin: 0 auto;
		margin-top: 20rpx;

	}

	.Childs-top-lan {
		width: 68rpx;
		height: 68rpx;
		line-height: 78rpx;
		opacity: 1;
		background: #bfdbf1;
		border-radius: 50%;
		text-align: center;
	}
</style>
